package com.clothing.service.impl;

import com.clothing.utils.page.Filter;
import org.springframework.stereotype.Service;

import com.clothing.entity.Industry;
import com.clothing.service.IndustryService;

import java.util.ArrayList;
import java.util.List;


/**
 * @author Charles
 * @version 1.0
 * @ClassName: IndustryServiceImpl
 * @Description: TODO(Industry - ServiceImpl)
 * @date 2018年5月27日
 */
@Service
public class IndustryServiceImpl extends BaseServiceImpl<Industry, Long> implements IndustryService {

    @Override
    public List<Industry> findRoots() {
        List<Filter> filters = new ArrayList<>();
        filters.add(Filter.isNull("parent"));
        return findList(null, filters, null);
    }
}
